// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './assets/ali/iconfont.css'
import 'mint-ui/lib/style.css'; 
import Icon from 'element-ui'
import Rate from 'element-ui'
import Steps from 'element-ui'
import Radio from 'element-ui'
import RadioGroup from 'element-ui'
import Form from 'element-ui'
import Upload from 'element-ui'
import Checkbox from 'element-ui'


import { MessageBox } from 'mint-ui';
import { Toast } from 'mint-ui';
Vue.$messagebox = Vue.prototype.$messagebox = MessageBox;
Vue.$toast = Vue.prototype.$toast = Toast;
import { Button } from 'mint-ui';
Vue.component(Button.name, Button);
import { Picker } from 'mint-ui';

Vue.component(Picker.name, Picker);

// 引入axios
import axios from 'axios'
Vue.prototype.$http = axios
axios.defaults.baseURL = 'http://api.mountainfreshes.com';

Vue.config.productionTip = false


Vue.use(Icon)
Vue.use(Rate)
Vue.use(Steps)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(Form)
Vue.use(Upload)
Vue.use(Checkbox)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
